
// ref()对应 state
// computed() 对应 getters
// function() 对应 actions
// Setup Stores

import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export let useShowPassword= defineStore('showPassword', () => {

  let password_show=ref(false);

  let pass_getter = computed(() => password_show.value)

  function ch_password_show(status) {
    password_show.value = status   //必须使用.value
  };

  return { pass_getter, ch_password_show}
  
});
